From 33ba1e8196878dd5dc210164048aeea703b8d3af Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Thu, 7 Apr 2011 15:08:05 +0100 Subject: [PATCH] xen/x86: explicitly mark start-of-file asm()s as .text LLVM and gold between them get confused when asm align commands are emitted before a section marker. Signed-off-by: Tim Deegan Acked-by: Keir Fraser --- xen/arch/x86/apic.c | 1 + xen/arch/x86/i8259.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c index cfdb13abf6..58f809ad42 100644 --- a/xen/arch/x86/apic.c +++ b/xen/arch/x86/apic.c @@ -82,6 +82,7 @@ bool_t __read_mostly directed_eoi_enabled = 0; * is no hardware IRQ pin equivalent for them, they are triggered * through the ICC by us (IPIs) */ +__asm__(".section .text"); BUILD_SMP_INTERRUPT(irq_move_cleanup_interrupt,IRQ_MOVE_CLEANUP_VECTOR) BUILD_SMP_INTERRUPT(event_check_interrupt,EVENT_CHECK_VECTOR) BUILD_SMP_INTERRUPT(invalidate_interrupt,INVALIDATE_TLB_VECTOR) diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c index 824e1faba1..24f4f6d54c 100644 --- a/xen/arch/x86/i8259.c +++ b/xen/arch/x86/i8259.c @@ -33,6 +33,8 @@ * interrupt-controller happy. */ +__asm__(".section .text"); + BUILD_COMMON_IRQ() #define BI(x,y) \ -- 2.30.2